Option | Purpose |
---|
-g0 | Produces a program object with a minimum of source-level debugging information. This is the default. Reduces the size of the program object but allows optimizations. Use this option with the -O option after you finish debugging. |
-g, -g2 | Produces additional debugging information for full symbolic debugging. This option overrides the optimization options (-Onum). |
-g3 | Produces additional debugging information for full symbolic debugging of fully optimized code. This option makes the debugger less accurate. You can use -g3 with an optimization option (-Onum). |